<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fn"  uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ page import="kr.co.insoft.framework.config.Authorities" %>
<c:set var="CONTEXT">${pageContext.request.contextPath}</c:set>
<c:set var="cssUrl">${pageContext.request.contextPath}/resources/css</c:set>
<c:set var="jsUrl">${pageContext.request.contextPath}/resources/js</c:set>
<form:form modelAttribute="paramEntityModel" role="form" cssClass="form-horizontal">
	<form:input path="paramid" type="hidden"/>
	<form:input path="applicationid" type="hidden" value='${paramEntityModel.applicationid }'/>
	<form:input path="companyid" type="hidden"/>
	<input type="hidden" id="chkName" value="Y"/>
	<input type="hidden" id="orignalName" value='${paramEntityModel.paramName }'/>
	<!-- 파라메터 네임 -->
	<div class="form-group">
		<form:label path="paramName" cssClass="col-sm-2 control-label"><spring:message code="template.param.name"/></form:label>
		<div class="col-sm-4">
			<form:input path="paramName" cssClass="form-control"/>
		</div>
		<div class="col-sm-2"> 
			<button class="btn btn-primary btnCheckName" data-types="param" type="button"><spring:message code="common.check.name"/></button>
		</div>
	</div>
	<!-- 파라메터 값 -->
	<div class="form-group">
		<form:label path="paramValue" cssClass="col-sm-2 control-label"><spring:message code="template.param.value"/></form:label>
		<div class="col-sm-10">
			<form:input path="paramValue" cssClass="form-control"/>
		</div>
	</div>
	<!-- 파라메터 요약설명 -->
	<div class="form-group">
		<form:label path="paramDesc" cssClass="col-sm-2 control-label"><spring:message code="common.description"/></form:label>
		<div class="col-sm-10">
		<form:textarea path="paramDesc"  cssClass="form-control" rows="2"/>
		</div>
	</div>
	<!-- 하단 버튼 -->
	<div class="form-group">  
		<div class="col-sm-12 text-right">
		<button class="btn btn-default btnCancel" type="button"><spring:message code="button.cancel"/></button>
		<c:if test="${fn:contains(buttons , Authorities.UPDATE)}">
		<button class="btn btn-success btnUpdateSubmit" data-types="param" type="button"><spring:message code="button.edit"/></button>
		</c:if>
		<!--  
		<c:if test="${fn:contains(buttons , Authorities.REMOVE)}">
		<button class="btn btn-primary deleteBtn" type="button"><spring:message code="button.delete"/></button>
		</c:if>
		-->
		</div>
	</div>
</form:form>